//
//  RegistInputCell.swift
//  旅航ios
//
//  Created by tulip on 2021/6/11.
//

import UIKit

class RegistInputView: UIView {
    var lab:UILabel!
    var textfield:UITextField!
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.backgroundColor=UIColor.white
        
        lab=UILabel.init(frame: CGRect(x: 25, y: 0, width: 70, height: frame.size.height))
        lab.text="确认密码"
        lab.textColor=UIColor.init(hexString: "666666")
        lab.font=UIFont.systemFont(ofSize: 15)
        self.addSubview(lab)
        
        textfield=UITextField.init(frame: CGRect(x: 105, y: 0, width: SCREEN_WIDTH-105, height: frame.size.height))
        textfield.placeholder="请再次输入密码"
        textfield.textColor=UIColor.init(hexString: "666666")
        textfield.font=UIFont.systemFont(ofSize: 16)
        self.addSubview(textfield)
        
        
        let line=UIView.init(frame: CGRect(x: 15, y: frame.size.height-1, width: SCREEN_WIDTH-30, height: 1))
        line.backgroundColor=UIColor.init(hexString: "ebebeb")
        self.addSubview(line)
        
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setTitleAndPlacehold(labStr:String,holderStr:String){
        lab.text=labStr
        textfield.placeholder=holderStr
    }
    
}
